//
//  BVShoppingCartTool.h
//  BuyVegetable
//
//  Created by yushanchang on 16/10/12.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVBaseTool.h"

@interface BVShoppingCartTool : BVBaseTool


/**
 获取购物车商品

 @param success 成功回调
 @param failure 失败回调
 */
- (void)fetchShoppingCartData:(void (^)(NSArray *dataArr))success failure:(void(^)(NSError *error))failure;

/**
 增加购物车商品数量

 @param goodsId 商品id
 @param success 成功回调
 @param failure 失败回调
 */
- (void)addGoodsToShoppingCart:(NSString *)goodsId success:(void (^)(NSString *code))success failure:(void(^)(NSError *error))failure;

/**
 减少购物车商品数量
 
 @param goodsId 商品id
 @param success 成功回调
 @param failure 失败回调
 */
- (void)minusGoodsToShoppingCart:(NSString *)goodsId success:(void (^)(NSString *code))success failure:(void(^)(NSError *error))failure;


- (void)fetchMyShoppingCartData:(void (^)(NSArray *dataArr))success;

@end
